package com.wangge.test1.date;

import java.time.Clock;
import java.time.Instant;

import org.junit.Test;

/**
 * 用来测试jdk1.8新的Date类
 * 
 * @author yangqc
 *
 */
public class ClockTest {
	@Test
	public void test1() {
		Clock clock=Clock.systemDefaultZone();
		Instant instant=clock.instant();
		System.out.println(instant);
	}
}
